package com.fowo.api.model.product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import javax.validation.constraints.*;
import lombok.Data;

/** SPU包含产品 导入导出辅助模型 */
@Data
public class ProductSpuSubExcelPo {

  @ExcelProperty(value = "所属SPU管理")
  private String productIdSpuName;

  @ExcelIgnore
  @ExcelProperty(value = "所属SPU管理")
  private Long productId;

  @ExcelProperty(value = "产品")
  private String subIdName;

  @ExcelIgnore
  @ExcelProperty(value = "产品")
  private Long subId;

  @Size(max = 500, message = "品名长度不能超过20")
  @ExcelProperty(value = "品名")
  private String productName;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ExcelProperty(value = "SKU")
  private String productSku;
}
